package com.niit.order.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/** userservice的配置类
 * @author yaojianfeng
 */
@Configuration
public class UserServiceConfiguration {

    /**
     * Configuration : 轮询策略
     * 优先级低于启动类中的配置,高于 yaml 中的配置
     * @return
     */
//    @Bean
//    public IRule ribbonRule(){
//        return new RoundRobinRule();
//    }

}
